#include "Window.h"
//#include <windows.h>

//using Cluedo::Gui::MainWindow;

//	LPCTSTR ClsName = L"Basic";
//	LPCTSTR WndName = L"Simple";
//
//LRESULT CALLBACK WndProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	MainWindow::createInstance(hInstance, /*hPrevInstance, lpCmdLine,*/ nCmdShow);
	MainWindow::getInstance()->exec();
	MainWindow::deleteInstance();

	//MSG Msg;
	//HWND hWnd;
	//WNDCLASSEX WndClsEx;

	//WndClsEx.cbSize = sizeof(WNDCLASSEX);
	//WndClsEx.style = CS_HREDRAW | CS_VREDRAW;
	//WndClsEx.lpfnWndProc = WndProcedure;
	//WndClsEx.cbClsExtra = 0;
	//WndClsEx.cbWndExtra = 0;
	//WndClsEx.hIcon = LoadIcon(NULL, IDI_APPLICATION);
	//WndClsEx.hCursor = LoadCursor(NULL, IDC_ARROW);
	//WndClsEx.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
	//WndClsEx.lpszMenuName = NULL;
	//WndClsEx.lpszClassName = ClsName;
	//WndClsEx.hInstance = hInstance;
	//WndClsEx.hIconSm = LoadIcon(NULL, IDI_APPLICATION);

	//RegisterClassEx(&WndClsEx);

	//hWnd = CreateWindow(ClsName, WndName, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL,
	//	NULL, hInstance, NULL);

//	ShowWindow(hWnd, SW_SHOWNORMAL);
//	UpdateWindow(hWnd);
//
//	while (GetMessage(&Msg, NULL, 0, 0))
//	{
//		TranslateMessage(&Msg);
//		DispatchMessage(&Msg);
//	}
//
}

//LRESULT CALLBACK WndProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
//{
//	switch (Msg)
//	{
//		case WM_DESTROY:
//		{
//			PostQuitMessage(WM_QUIT);
//			break;
//		}
//		default:
//		{
//			return DefWindowProc(hWnd, Msg, wParam, lParam);
//			//PostQuitMessage(WM_QUIT);
//		}
//
//		return 0;
//	}
//}